package com.github.catvod.spider;

import android.content.Context;
import android.os.Build;
import android.text.TextUtils;
import com.github.catvod.crawler.Spider;
import com.github.catvod.parser.C0000;
import com.github.catvod.parser.C0001;
import com.github.catvod.parser.C0002;
import com.github.catvod.parser.C0003;
import com.github.catvod.parser.C0004;
import com.github.catvod.parser.C0005;
import com.github.catvod.parser.C0006;
import com.github.catvod.parser.C0007;
import com.github.catvod.parser.C0008;
import com.github.catvod.parser.C0009;
import com.github.catvod.spider.merge.C0011;
import com.github.catvod.spider.merge.C0012;
import com.github.catvod.spider.merge.C0013;
import com.github.catvod.spider.merge.C0014;
import com.github.catvod.spider.merge.C0015;
import com.github.catvod.spider.merge.CE;
import com.github.catvod.spider.merge.fP;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONObject;

/* loaded from: classes.dex */
public class NanGua extends Spider {

    /* renamed from: short, reason: not valid java name */
    private static final short[] f44short = {3019, 3023, 3020, 3024, 3024, 3028, 2955, 2960, 2954, 2962, 2954, 2964, 677, 676, 677, 676, 676, 677, 677, 677, 673, 874, 885, 875, 885, 866, 590, 2677, 2681, 2683, 2616, 2661, 2675, 2656, 2675, 2680, 2624, 2687, 2674, 2675, 2681, 2616, 2679, 2662, 2662, 2616, 2679, 2680, 2674, 2660, 2681, 2687, 2674, 1663, 1663, 1663, 1632, 1656, 1659, 1658, 1660, 1660, 1659, 3149, 3142, 3173, 3184, 3136, 3155, 3199, 3167, 1618, 1620, 1615, 1619, 1624, 1616, 1623, 1619, 1621, 3251, 3246, 3242, 3234, 3210, 3246, 3243, 3243, 3246, 3252, 1363, 1353, 1351, 1358, 3125, 3110, 3121, 3120, 3114, 3116, 3117, 3100, 3117, 3106, 3118, 3110, 2920, 2939, 2924, 2925, 2935, 2929, 2928, 2881, 2941, 2929, 2938, 2939, 2099, 2101, 2083, 2100, 2155, 2087, 2081, 2083, 2088, 2098, 1339, 1343, 1335, 1339, 879, 894, 892, 884, 894, 888, 890, 832, 881, 894, 882, 890, 2226, 2238, 2236, 2303, 2224, 2209, 2209, 2303, 2239, 2224, 2239, 2230, 2212, 2224, 2213, 2215, 2453, 2436, 2434, 2432, 2438, 2442, 2448, 2443, 2449, 2402, 2425, 2402, 2423, 2426, 820, 805, 803, 801, 721, 724, 718, 713, 1265, 1261, 1261, 1257, 1187, 1206, 1206, 1248, 1258, 1207, 1274, 1265, 1272, 1271, 1278, 1268, 1276, 1271, 1278, 1248, 1260, 1271, 1207, 1274, 1270, 1268, 1206, 1272, 1257, 1264, 1207, 1257, 1265, 1257, 1206, 1257, 1259, 1270, 1263, 1264, 1277, 1276, 1206, 1263, 1270, 1277, 1222, 1269, 1264, 1258, 1261, 1190, 1272, 1257, 1257, 1188, 1248, 1269, 1248, 1258, 1215, 1272, 1259, 1276, 1272, 1188, 1212, 1244, 1196, 1212, 1184, 1242, 1212, 1243, 1193, 1212, 1244, 1196, 1212, 1185, 1242, 1212, 1243, 1240, 1215, 1277, 1276, 1263, 1264, 1274, 1276, 1258, 1188, 1272, 1271, 1277, 1259, 1270, 1264, 1277, 1215, 1248, 1276, 1272, 1259, 1188, 1212, 1244, 1196, 1212, 1243, 1184, 1212, 1243, 1197, 1212, 1244, 1197, 1212, 1243, 1243, 1212, 1243, 1245, 1215, 1277, 1276, 1263, 1264, 1274, 1276, 1231, 1276, 1259, 1258, 1264, 1270, 1271, 1188, 624, 567, 550, 550, 512, 563, 548, 549, 575, 569, 568, 536, 567, 571, 563, 619, 3089, 3139, 3150, 3143, 3154, 3082, 3090, 3186, 3072, 3090, 3189, 3078, 3090, 3189, 3189, 3090, 3186, 3074, 3090, 3086, 3186, 3090, 3087, 3189, 3089, 3158, 3143, 3143, 3169, 3154, 3141, 3140, 3166, 3160, 3161, 3188, 3160, 3155, 3154, 3082, 2145, 2094, 2090, 2082, 2094, 2170, 764, 702, 703, 684, 691, 697, 703, 663, 693, 702, 703, 694, 743, 2954, 3032, 3013, 3009, 3017, 2961, 3254, 3321, 3316, 3245, 878, 824, 809, 815, 813, 885, 2055, 2117, 2116, 2135, 2120, 2114, 2116, 2162, 2114, 2131, 2116, 2116, 2127, 2076, 2067, 2066, 2069, 2065, 2059, 2064, 2065, 2073, 2065, 2055, 2117, 2116, 2135, 2120, 2114, 2116, 2147, 2131, 2112, 2127, 2117, 2076, 906, 963, 990, 968, 969, 990, 913, 905, 1001, 922, 905, 916, 1001, 905, 917, 926, 905, 1001, 921, 905, 1006, 1005, 905, 916, 1002, 2286, 2232, 2191, 2187, 2238, 2231, 2217, 2184, 2176, 2301, 2210, 2177, 2301, 2183, 2207, 2211, 2189, 20321, 20321, -391, 26248, 24703, 1925, 1948, 1943, 1964, 1946, 1943, 1546, 1543, 2395, 2370, 2377, 2418, 2371, 2380, 2368, 2376, 1607, 1608, 1604, 1612, 2489, 2464, 2475, 2448, 2495, 2470, 2476, 3155, 3159, 3165, 3017, 3024, 3035, 3040, 3021, 3034, 3026, 3038, 3021, 3028, 3020, 2430, 2400, 2420, 2646, 2647, 2647, 3267, 3270, 3266, 3270, 3291, 2969, 2969, 2969, 1357, 1346, 1358, 1350, 1971, 1974, 1955, 1974, 1021, 993, 993, 997, 943, 954, 954, 1004, 998, 955, 1014, 1021, 1012, 1019, 1010, 1016, 1008, 1019, 1010, 1004, 992, 1019, 955, 1014, 1018, 1016, 954, 1012, 997, 1020, 955, 997, 1021, 997, 954, 997, 999, 1018, 995, 1020, 1009, 1008, 954, 995, 1018, 1009, 970, 1009, 1008, 993, 1012, 1020, 1017, 938, 1012, 997, 997, 936, 1004, 1017, 1004, 998, 947, 1009, 1008, 995, 1020, 1014, 1008, 998, 936, 1012, 1019, 1009, 999, 1018, 1020, 1009, 947, 1020, 1016, 1008, 1020, 936, 2442, 2504, 2505, 2522, 2501, 2511, 2505, 2529, 2499, 2504, 2505, 2496, 2449, 2775, 2709, 2708, 2695, 2712, 2706, 2708, 2727, 2708, 2691, 2690, 2712, 2718, 2719, 2764, 2513, 2435, 2462, 2458, 2450, 2506, 341, 282, 279, 334, 1979, 2044, 2029, 2029, 1995, 2040, 2031, 2030, 2036, 2034, 2035, 2003, 2044, 2032, 2040, 1952, 1200, 1266, 1267, 1248, 1279, 1269, 1267, 1221, 1269, 1252, 1267, 1267, 1272, 1195, 1188, 1189, 1186, 1190, 1212, 1191, 1190, 1198, 1190, 1200, 1271, 1254, 1254, 1216, 1267, 1252, 1253, 1279, 1273, 1272, 1237, 1273, 1266, 1267, 1195, 2062, 2124, 2125, 2142, 2113, 2123, 2125, 2154, 2138, 2121, 2118, 2124, 2069, 2746, 2796, 2779, 2783, 2794, 2787, 2813, 2780, 2772, 2729, 2806, 2773, 2729, 2771, 2763, 2807, 2777, 481, 504, 499, 456, 510, 499, 2973, 2948, 2959, 2996, 2949, 2954, 2950, 2958, 3260, 3237, 3246, 3221, 3258, 3235, 3241, 2315, 2319, 2309, 1307, 1302, 1311, 1290, 1328, 1281, 1294, 1282, 1290, 2119, 2122, 2115, 2134, 2260, 2253, 2246, 2301, 2267, 2247, 2243, 2256, 612, 632, 636, 623, 267, 274, 281, 290, 284, 271, 280, 284, 2164, 2157, 2150, 2141, 2160, 2151, 2159, 2147, 2160, 2153, 2161, 1697, 1727, 1707, 1082, 1059, 1064, 1043, 1069, 1071, 1080, 1059, 1086, 2587, 2562, 2569, 2610, 2569, 2564, 2591, 2568, 2574, 2585, 2562, 2591, 2760, 2769, 2778, 2785, 2781, 2769, 2768, 2762, 2779, 2768, 2762, 404, 403, 411, 402, 892, 864, 877, 885, 873, 894, 851, 869, 866, 874, 867, 535, 524, 523, 531, 608, 639, 626, 627, 633, 585, 639, 632, 624, 633, 2431, 1632, 1639, 1657, 1431, 519, 542, 533, 558, 513, 541, 528, 520, 558, 535, 515, 542, 540, 2308, 2333, 2326, 2349, 2306, 2334, 2323, 2315, 2349, 2311, 2304, 2334, 427, 430, 436, 435, 2566, 2598, 2687, 2601, 2596, 2605, 2616, 2562, 2612, 2617, 2687, 2663, 2687, 2668, 2687, 2673, 2687, 2601, 2596, 2605, 2616, 2562, 2611, 2620, 2608, 2616, 2687, 2663, 2687, 32616, 21804, 2687, 2592, 2673, 2598, 2687, 2601, 2596, 2605, 2616, 2562, 2612, 2617, 2687, 2663, 2687, 2671, 2687, 2673, 2687, 2601, 2596, 2605, 2616, 2562, 2611, 2620, 2608, 2616, 2687, 2663, 2687, 32616, -31845, 22586, 2687, 2592, 2673, 2598, 
    2687, 2601, 2596, 2605, 2616, 2562, 2612, 2617, 2687, 2663, 2687, 2670, 2687, 2673, 2687, 2601, 2596, 2605, 2616, 2562, 2611, 2620, 2608, 2616, 2687, 2663, 2687, 29857, -30681, 2687, 2592, 2673, 2598, 2687, 2601, 2596, 2605, 2616, 2562, 2612, 2617, 2687, 2663, 2687, 2665, 2687, 2673, 2687, 2601, 2596, 2605, 2616, 2562, 2611, 2620, 2608, 2616, 2687, 2663, 2687, 22773, 25974, 2687, 2592, 2673, 2598, 2687, 2601, 2596, 2605, 2616, 2562, 2612, 2617, 2687, 2663, 2687, 2665, 2667, 2687, 2673, 2687, 2601, 2596, 2605, 2616, 2562, 2611, 2620, 2608, 2616, 2687, 2663, 2687, 21323, 22586, 2687, 2592, 2560, 445, 434, 447, 429, 429, 2281, 2293, 2293, 2289, 2235, 2222, 2222, 2296, 2290, 2223, 2274, 2281, 2272, 2287, 2278, 2284, 2276, 2287, 2278, 2296, 2292, 2287, 2223, 2274, 2286, 2284, 2222, 2272, 2289, 2280, 2223, 2289, 2281, 2289, 2222, 2289, 2291, 2286, 2295, 2280, 2277, 2276, 2222, 2281, 2286, 2284, 2276, 2270, 2277, 2272, 2293, 2272, 2238, 2272, 2289, 2289, 2236, 2296, 2285, 2296, 2290, 2215, 2277, 2276, 2295, 2280, 2274, 2276, 2290, 2236, 2272, 2287, 2277, 2291, 2286, 2280, 2277, 2215, 2280, 2284, 2276, 2280, 2236, 2506, 2440, 2441, 2458, 2437, 2447, 2441, 2465, 2435, 2440, 2441, 2432, 2513, 388, 454, 455, 468, 459, 449, 455, 500, 455, 464, 465, 459, 461, 460, 415, 3241, 3323, 3302, 3298, 3306, 3250, 3073, 3150, 3139, 3098, 3095, 3073, 3142, 3159, 3159, 3185, 3138, 3157, 3156, 3150, 3144, 3145, 3177, 3142, 3146, 3138, 3098, 1174, 1236, 1237, 1222, 1241, 1235, 1237, 1251, 1235, 1218, 1237, 1237, 1246, 1165, 1154, 1155, 1156, 1152, 1178, 1153, 1152, 1160, 1152, 1174, 1233, 1216, 1216, 1254, 1237, 1218, 1219, 1241, 1247, 1246, 1267, 1247, 1236, 1237, 1165, 647, 709, 708, 727, 712, 706, 708, 739, 723, 704, 719, 709, 668, 593, 519, 560, 564, 513, 520, 534, 567, 575, 578, 541, 574, 578, 568, 544, 540, 562, 467, 460, 457, 452, 453, 581, 576, 597, 576, 1553, 1566, 1554, 1562, 2461, 2436, 2447, 2484, 2434, 2447, 2707, 2718, 669, 644, 655, 692, 645, 650, 646, 654, 1662, 1639, 1644, 1623, 1656, 1633, 1643, 422, 418, 424, 2168, 2145, 2154, 2129, 2172, 2155, 2147, 2159, 2172, 2149, 2173, 2979, 2982, 3004, 3003, 817, 822, 808, 314, 311, 307, 310, 311, 288, 2370, 2324, 2339, 2343, 2322, 2331, 2309, 2340, 2348, 2385, 2318, 2349, 2385, 2347, 2355, 2319, 2337, 1548, 1545, 1564, 1545, 2583, 2389, 2372, 2391, 2390, 2368, 3275, 3287, 3290, 3266, 3310, 3273, 3287, 960, 965, 976, 965, 3088, 3084, 3084, 3080, 3138, 3159, 3159, 3073, 3083, 3158, 3099, 3088, 3097, 3094, 3103, 3093, 3101, 3094, 3103, 3073, 3085, 3094, 3158, 3099, 3095, 3093, 3159, 3097, 3080, 3089, 3158, 3080, 3088, 3080, 3159, 3080, 3082, 3095, 3086, 3089, 3100, 3101, 3159, 3083, 3101, 3097, 3082, 3099, 3088, 3111, 3082, 3101, 3083, 3085, 3092, 3084, 3143, 3097, 3080, 3080, 3141, 3073, 3092, 3073, 3083, 3166, 3086, 3089, 3100, 3101, 3095, 3111, 3094, 3097, 3093, 3101, 3141, 2809, 2747, 2746, 2729, 2742, 2748, 2746, 2732, 2786, 2750, 2737, 2747, 2733, 2736, 2742, 2747, 2809, 2742, 2738, 2746, 2742, 2786, 1026, 1088, 1089, 1106, 1101, 1095, 1089, 1129, 1099, 1088, 1089, 1096, 1049, 2464, 2530, 2531, 2544, 2543, 2533, 2531, 2512, 2531, 2548, 2549, 2543, 2537, 2536, 2491, 1162, 1240, 1221, 1217, 1225, 1169, 1725, 1786, 1771, 1771, 1741, 1790, 1769, 1768, 1778, 1780, 1781, 1749, 1786, 1782, 1790, 1702, 1280, 1346, 1347, 1360, 1359, 1349, 1347, 1397, 1349, 1364, 1347, 1347, 1352, 1307, 1300, 1301, 1298, 1302, 1292, 1303, 1302, 1310, 1302, 1280, 1351, 1366, 1366, 1392, 1347, 1364, 1365, 1359, 1353, 1352, 1381, 1353, 1346, 1347, 1307, 1760, 1698, 1699, 1712, 1711, 1701, 1699, 1668, 1716, 1703, 1704, 1698, 1787, 3212, 3290, 3309, 3305, 3292, 3285, 3275, 3306, 3298, 3231, 3264, 3299, 3231, 3301, 3325, 3265, 3311, 726, 713, 708, 709, 719, 767, 718, 705, 717, 709, 468, 461, 454, 509, 459, 454, 1369, 1364, 1857, 1880, 1875, 1896, 1881, 1878, 1882, 1874, 679, 702, 693, 654, 673, 696, 690, 823, 819, 825, 2756, 2781, 2774, 2797, 2752, 2775, 2783, 2771, 2752, 2777, 2753, 1817, 1793, 1798, 1807, 1808, 1793, 1804, 1821, 2109, 2104, 2082, 2085};
    private String h = C0004.m12(f44short, 0, 12, 2980);
    private String V0 = C0012.m37(f44short, 12, 9, 661);
    private String j = C0012.m37(f44short, 21, 5, 859);
    private String q = C0015.m47(f44short, 26, 1, 631);
    private String I = C0000.m1(f44short, 27, 26, 2582);
    private String oC = C0014.m43(f44short, 53, 10, 1614);
    private String BQ = "";
    private String W = C0002.m6(f44short, 63, 8, 3093);
    private String u = C0000.m1(f44short, 71, 9, 1633);
    private String Qy = Build.VERSION.RELEASE;
    private String oq = Build.MODEL;
    private String F8 = Build.BRAND;

    public NanGua() {
        int m4 = C0001.m4();
        int i = 1616;
        while (true) {
            i ^= 1633;
            switch (i) {
                case 14:
                case 49:
                    i = m4 <= 0 ? 1709 : 1678;
                case 204:
                    System.out.println(Double.decode(C0001.m5("DL6mn7ryQ2thEmV")));
                    break;
                case 239:
                    break;
            }
            return;
        }
    }

    /* JADX WARN: Code restructure failed: missing block: B:90:0x00f0, code lost:
    
        return r3;
     */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    private java.util.HashMap<java.lang.String, java.lang.String> V0(java.lang.String r10, java.lang.String r11, long r12) {
        /*
            Method dump skipped, instructions count: 360
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: com.github.catvod.spider.NanGua.V0(java.lang.String, java.lang.String, long):java.util.HashMap");
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:6:0x019c. Please report as an issue. */
    public String categoryContent(String str, String str2, boolean z, HashMap<String, String> hashMap) {
        String m6 = C0002.m6(f44short, 160, 9, 2533);
        String m26 = C0007.m26(f44short, 169, 5, 2326);
        String m37 = C0012.m37(f44short, 174, 4, 836);
        String m47 = C0015.m47(f44short, 178, 4, 701);
        try {
            long currentTimeMillis = System.currentTimeMillis();
            String str3 = C0000.m1(f44short, 182, 139, 1177) + this.Qy + C0000.m1(f44short, 321, 16, 598) + this.j + C0007.m26(f44short, 337, 40, 3127) + this.q + C0001.m3(f44short, 377, 6, 2119) + this.BQ + C0011.m35(f44short, 383, 13, 730) + this.oq + C0005.m17(f44short, 396, 6, 2988) + (currentTimeMillis / 1000) + C0017.m52(f44short, 402, 4, 3216) + str + C0002.m6(f44short, 406, 6, 840) + str2 + C0013.m41(f44short, 412, 36, 2081) + this.F8 + C0003.m9(f44short, 448, 25, 940);
            String str4 = this.BQ + C0011.m35(f44short, 473, 17, 2253) + currentTimeMillis;
            System.out.println(C0004.m12(f44short, 490, 3, 354) + str4 + str3);
            String oq = fP.oq(str3, V0(str3, CE.h(str4, CE.V0).toUpperCase(), currentTimeMillis));
            System.out.println(C0018.m56(f44short, 493, 2, 1177) + oq);
            JSONObject jSONObject = new JSONObject(h(oq));
            JSONArray jSONArray = jSONObject.getJSONArray(m47);
            JSONArray jSONArray2 = new JSONArray();
            int i = 0;
            while (true) {
                int length = jSONArray.length();
                int i2 = 1616;
                while (true) {
                    i2 ^= 1633;
                    switch (i2) {
                        case 14:
                        case 49:
                            i2 = i < length ? 1709 : 1678;
                        case 204:
                            JSONObject jSONObject2 = jSONArray.getJSONObject(i);
                            JSONObject jSONObject3 = new JSONObject();
                            jSONObject3.put(C0000.m1(f44short, 495, 6, 2035), jSONObject2.getString(C0018.m56(f44short, 501, 2, 1635)));
                            jSONObject3.put(C0014.m43(f44short, 503, 8, 2349), jSONObject2.getString(C0006.m18(f44short, 511, 4, 1577)));
                            jSONObject3.put(C0013.m41(f44short, 515, 7, 2511), jSONObject2.getString(C0003.m9(f44short, 522, 3, 3130)));
                            jSONObject3.put(C0006.m18(f44short, 525, 11, 3007), jSONObject2.getString(C0009.m30(f44short, 536, 3, 2323)));
                            jSONArray2.put(jSONObject3);
                            int i3 = i + 1;
                            int i4 = 1740;
                            while (true) {
                                i4 ^= 1757;
                                switch (i4) {
                                    case 17:
                                        i4 = 1771;
                                        break;
                                    case 54:
                                        break;
                                }
                            }
                            i = i3;
                            break;
                        case 239:
                            break;
                    }
                    JSONObject jSONObject4 = new JSONObject();
                    int parseInt = Integer.parseInt(jSONObject.getString(m37));
                    int i5 = jSONObject.getInt(m26);
                    jSONObject.getInt(m6);
                    jSONObject4.put(m37, parseInt);
                    jSONObject4.put(m6, C0015.m47(f44short, 539, 3, 2663));
                    jSONObject4.put(C0015.m47(f44short, 542, 5, 3247), 20);
                    jSONObject4.put(m26, i5);
                    jSONObject4.put(m47, jSONArray2);
                    return jSONObject4.toString();
                }
            }
        } catch (Throwable th) {
            return "";
        }
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:26:0x02a5. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:44:0x0322. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:6:0x0265. Please report as an issue. */
    public String detailContent(List<String> list) {
        String m47 = C0015.m47(f44short, 547, 3, 3005);
        String m30 = C0009.m30(f44short, 550, 4, 1315);
        String m56 = C0018.m56(f44short, 554, 4, 2007);
        try {
            Init.getPackage();
            long currentTimeMillis = System.currentTimeMillis();
            String str = C0015.m47(f44short, 558, 84, 917) + this.BQ + C0005.m17(f44short, 642, 13, 2476) + this.oq + C0011.m35(f44short, 655, 15, 2801) + this.Qy + C0007.m26(f44short, 670, 6, 2551) + (currentTimeMillis / 1000) + C0014.m43(f44short, 676, 4, 371) + list.get(0) + C0007.m26(f44short, 680, 16, 1949) + this.j + C0005.m17(f44short, 696, 39, 1174) + this.q + C0009.m30(f44short, 735, 13, 2088) + this.F8;
            String oq = fP.oq(str, V0(str, CE.h(this.BQ + C0009.m30(f44short, 748, 17, 2713) + currentTimeMillis, CE.V0).toUpperCase(), currentTimeMillis));
            JSONObject jSONObject = new JSONObject(h(oq)).getJSONObject(m56);
            JSONObject jSONObject2 = new JSONObject();
            JSONObject jSONObject3 = new JSONObject();
            ArrayList arrayList = new ArrayList();
            ArrayList arrayList2 = new ArrayList();
            String string = jSONObject.getString(m30);
            jSONObject3.put(C0000.m1(f44short, 765, 6, 407), list.get(0));
            jSONObject3.put(C0017.m52(f44short, 771, 8, 3051), string);
            jSONObject3.put(C0007.m26(f44short, 779, 7, 3274), jSONObject.getString(C0004.m12(f44short, 786, 3, 2402)));
            jSONObject3.put(C0013.m41(f44short, 789, 9, 1391), jSONObject.getString(C0002.m6(f44short, 798, 4, 2099)));
            jSONObject3.put(C0004.m12(f44short, 802, 8, 2210), jSONObject.getString(C0000.m1(f44short, 810, 4, 541)));
            jSONObject3.put(C0006.m18(f44short, 814, 8, 381), "");
            jSONObject3.put(C0005.m17(f44short, 822, 11, 2050), jSONObject.getString(C0009.m30(f44short, 833, 3, 1740)));
            jSONObject3.put(C0017.m52(f44short, 836, 9, 1100), "");
            jSONObject3.put(C0001.m3(f44short, 845, 12, 2669), "");
            jSONObject3.put(C0009.m30(f44short, 857, 11, 2750), "" + jSONObject.getString(C0009.m30(f44short, 868, 4, 509)).trim());
            JSONArray jSONArray = new JSONObject(oq).getJSONObject(m56).getJSONArray(C0009.m30(f44short, 872, 11, 780));
            int i = 0;
            while (true) {
                int i2 = i;
                int length = jSONArray.length();
                int i3 = 1616;
                while (true) {
                    i3 ^= 1633;
                    switch (i3) {
                        case 14:
                        case 49:
                            i3 = i2 < length ? 1709 : 1678;
                        case 204:
                            JSONObject jSONObject4 = jSONArray.getJSONObject(i2);
                            String string2 = jSONObject4.getString(C0013.m41(f44short, 883, 4, 612));
                            ArrayList arrayList3 = new ArrayList();
                            JSONArray jSONArray2 = jSONObject4.getJSONArray(C0009.m30(f44short, 887, 10, 534));
                            int i4 = 0;
                            while (true) {
                                int length2 = jSONArray2.length();
                                int i5 = 1740;
                                while (true) {
                                    i5 ^= 1757;
                                    switch (i5) {
                                        case 17:
                                            i5 = i4 < length2 ? 1833 : 1802;
                                        case 54:
                                        case 471:
                                            break;
                                        case 500:
                                            JSONObject jSONObject5 = jSONArray2.getJSONObject(i4);
                                            arrayList3.add(jSONObject5.getString(m30) + C0009.m30(f44short, 897, 1, 2395) + jSONObject5.getJSONArray(C0004.m12(f44short, 898, 3, 1557)).get(0));
                                            i4++;
                                            int i6 = 1864;
                                            while (true) {
                                                i6 ^= 1881;
                                                switch (i6) {
                                                    case 17:
                                                        i6 = 48674;
                                                        break;
                                                    case 47483:
                                                        break;
                                                }
                                            }
                                            break;
                                    }
                                    boolean isEmpty = arrayList3.isEmpty();
                                    int i7 = 48767;
                                    while (true) {
                                        i7 ^= 48784;
                                        switch (i7) {
                                            case 14:
                                            case 45:
                                                arrayList.add(string2);
                                                arrayList2.add(TextUtils.join(C0018.m56(f44short, 901, 1, 1460), arrayList3));
                                                break;
                                            case 76:
                                                int i8 = 48891;
                                                while (true) {
                                                    i8 ^= 48908;
                                                    switch (i8) {
                                                        case 22:
                                                            break;
                                                        case 503:
                                                            i8 = 48922;
                                                    }
                                                    break;
                                                }
                                                break;
                                            case 239:
                                                i7 = isEmpty ? 48860 : 48829;
                                        }
                                    }
                                    i = i2 + 1;
                                    int i9 = 49666;
                                    while (true) {
                                        i9 ^= 49683;
                                        switch (i9) {
                                            case 17:
                                                i9 = 49697;
                                                break;
                                            case 50:
                                                break;
                                        }
                                    }
                                }
                            }
                            break;
                        case 239:
                            break;
                    }
                    String join = TextUtils.join(m47, arrayList);
                    String join2 = TextUtils.join(m47, arrayList2);
                    jSONObject3.put(C0007.m26(f44short, 902, 13, 625), join);
                    jSONObject3.put(C0003.m9(f44short, 915, 12, 2418), join2);
                    JSONArray jSONArray3 = new JSONArray();
                    jSONArray3.put(jSONObject3);
                    jSONObject2.put(C0011.m35(f44short, 927, 4, 455), jSONArray3);
                    return jSONObject2.toString();
                }
            }
        } catch (Throwable th) {
            return "";
        }
    }

    protected String h(String str) {
        return str;
    }

    public String homeContent(boolean z) {
        try {
            JSONObject jSONObject = new JSONObject();
            jSONObject.put(C0018.m56(f44short, 1099, 5, 478), new JSONArray(C0007.m26(f44short, 931, 168, 2653)));
            return jSONObject.toString();
        } catch (Throwable th) {
            return "";
        }
    }

    /* JADX WARN: Code restructure failed: missing block: B:54:?, code lost:
    
        return "";
     */
    /* JADX WARN: Failed to find 'out' block for switch in B:8:0x0104. Please report as an issue. */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public java.lang.String homeVideoContent() {
        /*
            Method dump skipped, instructions count: 504
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: com.github.catvod.spider.NanGua.homeVideoContent():java.lang.String");
    }

    public void init(Context context, String str) {
        super.init(context, str);
        this.BQ = str;
        int m8 = C0002.m8();
        int i = 1616;
        while (true) {
            i ^= 1633;
            switch (i) {
                case 14:
                case 49:
                    i = m8 <= 0 ? 1709 : 1678;
                case 204:
                    System.out.println(Integer.parseInt(C0014.m42("6tlt0Z5xUZcXYSH")));
                    break;
                case 239:
                    break;
            }
            return;
        }
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:20:0x0092. Please report as an issue. */
    public String playerContent(String str, String str2, List<String> list) {
        String m6 = C0002.m6(f44short, 1365, 3, 836);
        String m27 = C0008.m27(f44short, 1368, 6, 338);
        try {
            long currentTimeMillis = System.currentTimeMillis();
            JSONObject jSONObject = new JSONObject(h(fP.oq(str2, V0(str2, CE.h(this.BQ + C0018.m56(f44short, 1374, 17, 2401) + currentTimeMillis, CE.V0).toUpperCase(), currentTimeMillis)))).getJSONObject(C0013.m41(f44short, 1391, 4, 1640));
            JSONObject optJSONObject = jSONObject.optJSONObject(m27);
            String string = jSONObject.getString(m6);
            JSONObject jSONObject2 = new JSONObject();
            int i = 1616;
            while (true) {
                i ^= 1633;
                switch (i) {
                    case 14:
                        break;
                    case 49:
                        if (optJSONObject == null) {
                            break;
                        } else {
                            i = 1709;
                        }
                    case 204:
                        JSONObject jSONObject3 = new JSONObject();
                        Iterator<String> keys = optJSONObject.keys();
                        while (true) {
                            boolean hasNext = keys.hasNext();
                            int i2 = 1740;
                            while (true) {
                                i2 ^= 1757;
                                switch (i2) {
                                    case 17:
                                        i2 = hasNext ? 1833 : 1802;
                                    case 54:
                                    case 471:
                                        break;
                                    case 500:
                                        String next = keys.next();
                                        jSONObject3.put(next, C0015.m47(f44short, 1395, 1, 2615) + optJSONObject.getString(next));
                                        int i3 = 1864;
                                        while (true) {
                                            i3 ^= 1881;
                                            switch (i3) {
                                                case 17:
                                                    i3 = 48674;
                                                    break;
                                                case 47483:
                                                    break;
                                            }
                                        }
                                        break;
                                }
                                jSONObject2.put(m27, jSONObject3.toString());
                                break;
                            }
                        }
                        break;
                    case 239:
                        break;
                    default:
                        continue;
                }
                i = 1678;
            }
            jSONObject2.put(C0018.m56(f44short, 1396, 5, 2341), 0);
            jSONObject2.put(C0003.m9(f44short, 1401, 7, 3259), "");
            jSONObject2.put(m6, string);
            return jSONObject2.toString();
        } catch (Throwable th) {
            return "";
        }
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:39:0x014f. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:47:0x01cb. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:6:0x0112. Please report as an issue. */
    public String searchContent(String str, boolean z) {
        String m35 = C0011.m35(f44short, 1408, 4, 932);
        try {
            long currentTimeMillis = System.currentTimeMillis();
            String str2 = C0009.m30(f44short, 1412, 77, 3192) + URLEncoder.encode(str) + C0000.m1(f44short, 1489, 22, 2783) + this.BQ + C0004.m12(f44short, 1511, 13, 1060) + this.oq + C0000.m1(f44short, 1524, 15, 2438) + this.Qy + C0011.m35(f44short, 1539, 6, 1196) + (currentTimeMillis / 1000) + C0007.m26(f44short, 1545, 16, 1691) + this.j + C0003.m9(f44short, 1561, 39, 1318) + this.q + C0005.m17(f44short, 1600, 13, 1734) + this.F8;
            JSONArray jSONArray = new JSONObject(h(fP.oq(str2, V0(str2, CE.h(this.BQ + C0004.m12(f44short, 1613, 17, 3247) + currentTimeMillis, CE.V0).toUpperCase(), currentTimeMillis)))).getJSONArray(m35).getJSONObject(0).getJSONArray(m35);
            JSONArray jSONArray2 = new JSONArray();
            int i = 0;
            while (true) {
                int length = jSONArray.length();
                int i2 = 1616;
                while (true) {
                    i2 ^= 1633;
                    switch (i2) {
                        case 14:
                        case 49:
                            i2 = i < length ? 1709 : 1678;
                        case 204:
                            JSONObject jSONObject = jSONArray.getJSONObject(i);
                            JSONObject jSONObject2 = new JSONObject();
                            String string = jSONObject.getString(C0006.m18(f44short, 1630, 10, 672));
                            boolean contains = string.contains(str);
                            int i3 = 1740;
                            while (true) {
                                i3 ^= 1757;
                                switch (i3) {
                                    case 17:
                                        i3 = !contains ? 1833 : 1802;
                                    case 54:
                                    case 471:
                                        jSONObject2.put(C0001.m3(f44short, 1640, 6, 418), jSONObject.getString(C0005.m17(f44short, 1646, 2, 1328)));
                                        jSONObject2.put(C0001.m3(f44short, 1648, 8, 1847), string);
                                        jSONObject2.put(C0003.m9(f44short, 1656, 7, 721), jSONObject.getString(C0013.m41(f44short, 1663, 3, 862)));
                                        jSONObject2.put(C0000.m1(f44short, 1666, 11, 2738), jSONObject.getString(C0006.m18(f44short, 1677, 8, 1896)));
                                        jSONArray2.put(jSONObject2);
                                        break;
                                    case 500:
                                        int i4 = 1864;
                                        while (true) {
                                            i4 ^= 1881;
                                            switch (i4) {
                                                case 17:
                                                    i4 = 48674;
                                                case 47483:
                                                    break;
                                            }
                                            break;
                                        }
                                }
                            }
                            int i5 = i + 1;
                            int i6 = 48767;
                            while (true) {
                                i6 ^= 48784;
                                switch (i6) {
                                    case 14:
                                        break;
                                    case 239:
                                        i6 = 48798;
                                }
                            }
                            i = i5;
                            break;
                        case 239:
                            break;
                    }
                    JSONObject jSONObject3 = new JSONObject();
                    jSONObject3.put(C0004.m12(f44short, 1685, 4, 2129), jSONArray2);
                    return jSONObject3.toString();
                }
            }
        } catch (Throwable th) {
            return "";
        }
    }
}
